FROM tiangolo/uwsgi-nginx-flask

# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories

COPY ./app/requirements.txt /app/requirements.txt
RUN pip install -i  https://pypi.mirrors.ustc.edu.cn/simple/ --upgrade pip
RUN pip install -i  https://pypi.mirrors.ustc.edu.cn/simple/ -r /app/requirements.txt

COPY ./app /app
# RUN bash /app/docker-entry.sh